About Me

My photo
HANUMANGARH, RAJASTHAN, India

Tuesday 12 December 2023

AWS/Docker Questions and Answer

 Which Dockerfile instruction indicates what base image to use

Select one:

a. USING

b. ENTRYPOINT

c. FROM

d. BASE

 

Which of the following phases in the Maven build lifecycle compiles the source code of the project?

Select one:

a. package

b. test

c. validate

d. compile

 

 

You want to ensure that your EC2 instances in a private subnet can access the internet for software updates, but you also want to maintain security. What AWS service should you use?

Select one:

a. NAT Gateway

b. AWS Direct Connect

c. VPC Peering

d. Elastic Load Balancer

 

 

Which of the following best describes Jenkins pipeline?

Select one:

a. A suite of plugins for Jenkins

b. A scripting language used within Jenkins jobs

c. A graphical user interface for managing Jenkins jobs

d. A way to define continuous delivery pipelines using code

 

 

What is Kubernetes Kubelet?

Select one:

a. A tool for managing Kubernetes resources

b. The primary node agent that runs on each node in a Kubernetes cluster

c. A way to manage container images

d. A networking abstraction to access a set of Pods

 

What is an EC2 instance ?

Select one:

a. A storage service

b. A database service

c. A virtual server in the cloud

d. A content delivery network

 

What is the primary role of a Kubernetes Node (Minion)?

Select one:

a. To manage networking within a cluster

b. To store persistent data

c. To run applications and workloads

d. To define cluster-wide policies

 

What is an AWS region?

Select one:

a. An individual server within an availability zone

b. A collection of data centers in a specific geographic area

c. A specific virtual private cloud (VPC)

d. A specific availability zone within a data center

 

Which file in Maven defines the project configuration, including dependencies and build settings?

Select one:

a. build.xml

b. project.xml

c. pom.xml

d. dependencies.xml

 

What is the primary storage device for EC2 instances called?

Select one:

a. Amazon S3

b. Amazon Glacier

c. Amazon RDS

d. Elastic Block Store (EBS)

 

What is the primary function of Jenkins in the context of software development?

Select one:

a. Designing user interfaces

b. Building, testing, and deploying software

c. Managing databases

d. Writing code

 

What is the purpose of Amazon Machine Images (AMIs) in AWS EC2, and how are they typically used?

Select one:

a. AMIs are used to store data in S3 buckets. They are typically used for long-term storage.

b. AMIs are used to create customized EC2 instances. They serve as templates for launching new instances with pre-configured software and settings.

c. AMIs are used for scaling EC2 instances horizontally. They automatically create new instances when traffic increases.

d. AMIs are used to manage security groups for EC2 instances. They define inbound and outbound traffic rules.

 

What is Git primarily used for in software development?

Select one:

a. Continuous integration

b. Build automation

c. Dependency management

d. Version control

 

What can you include in a custom AMI ?

Select one:

a. Only data and permissions

b. Only hardware configurations

c. Software configurations, data, and permissions

d. Only software configurations

 

Which of the following command gives you detailed info on a Pod?

Select one:

a. kubectl describe pods

b. kubectl pods inspect

c. kubectl get pods --detail

d. kubectl get pods -vv

 

What is IAM used for in AWS?

Select one:

a. Managing user permissions and access to AWS resources

b. Managing database instances

c. Configuring load balancers

d. Creating virtual networks

 

What does a Jenkins pipeline stage represent?

Select one:

a. A physical server

b. A user interface element

c. A version control repository

d. A block of code that performs a specific task or contains multiple tasks

 

What is Kubernetes Secret?

Select one:

a. A tool for managing Kubernetes resources

b. A way to manage Kubernetes nodes

c. A mechanism for storing sensitive data in Kubernetes

d. A way to manage container images

 

What is Docker?

Select one:

a. An operating system

b. A programming language

c. A version control system

d. A containerization platform

 

What is the root user in AWS IAM?

Select one:

a. The user who manages IAM roles

b. The first user created in an AWS account

c. The user with read-only access

d. The user with the most permissions in an AWS account

 

What does the "Dockerfile" specify?

Select one:

a. Build steps and dependencies for a Docker image

b. Container runtime configuration

c. Container version

d. Networking settings for Docker containers

 

What is the purpose of a Docker image?

Select one:

a. To create virtual networks

b. To configure container security settings

c. To manage container runtime environments

d. To store and distribute applications and their dependencies

 

Which statement is true about Jenkinsfile?

Select one:

a. Jenkinsfile cannot be stored in version control systems

b. Jenkinsfile is used for configuring Jenkins build jobs in a declarative way

c. Jenkinsfile is only used for Ruby projects

d. Jenkinsfile is used only in Jenkins versions prior to 2.0

 

What is the primary purpose of an Internet Gateway (IGW) in AWS VPC?

Select one:

a. To connect two VPCs in different regions

b. To provide direct internet access to instances in a VPC

c. To create a VPN connection to on-premises networks

d. To route traffic between private subnets within the same VPC

 

at does a Jenkins build job do?

Select one:

a. Manages database schemas

b. Compiles and packages code

c. Sends notifications to developers

d. Deploys applications to production servers

 

What is kubernetes ConfigMap?

Select one:

a. A mechanism for storing configuration data in Kubernetes

b. A tool for managing Docker images

c. A way to manage Kubernetes nodes

d. A networking abstraction to access a set of Pods

 

What is Jenkins?

Select one:

a. A programming language

b. An automation server

c. A cloud storage service

d. A version control system

 

Which Git command is used to create a new branch?

Select one:

a. git checkout

b. git push

c. git branch

d. git commit

 

What is the purpose of EBS snapshots, and how can they be used in AWS?

Select one:

a. EBS snapshots are used to create new EBS volumes with different sizes. They are helpful for resizing volumes.

b. EBS snapshots are used for backup and data recovery. They capture a point-in-time copy of an EBS volume and can be used to restore data or create new volumes.

c. EBS snapshots are used to replicate data between AWS regions. They are essential for disaster recovery.

d. EBS snapshots are used to cache frequently accessed data for faster read access.

 

Which of the following is true about EC2 instance types?

Select one:

a. They determine the operating system of the instance

b. They define the hardware of the host computer for the instance

c. They determine the region in which the instance is launched

d. They are fixed and cannot be changed once an instance is launched

 

No comments:

Post a Comment

Export contact from Justdial

  Extract Data From JustDial using Selenium Let us see how to extract data from Justdial using Selenium and Python. Justdial is a company th...