aws banner

AWS Multiple Choice Questions (MCQs) and Answers

Master AWS with Practice MCQs. Explore our curated collection of Multiple Choice Questions. Ideal for placement and interview preparation, our questions range from basic to advanced, ensuring comprehensive coverage of AWS concepts. Begin your placement preparation journey now!

Q91

Q91 Which AWS tool provides a central dashboard for managing compliance and security issues?

A

Trusted Advisor

B

CloudFormation

C

Control Tower

D

Organizations

Q92

Q92 What is the purpose of the StackSets feature in CloudFormation?

A

Manage multiple accounts

B

Create nested templates

C

Set IAM permissions

D

Encrypt data

Q93

Q93 Which AWS CLI command creates a CloudFormation stack?

A

aws cloudformation create-template

B

aws cloudformation create-stack

C

aws template new

D

aws cloudformation init-stack

Q94

Q94 How do you deploy a specific state configuration using AWS Systems Manager?

A

aws systems apply-config

B

aws ssm execute-state

C

aws ssm start-session

D

aws ssm apply-state

Q95

Q95 Which AWS CLI command deploys a new OpsWorks stack?

A

aws opsworks deploy

B

aws opsworks create-stack

C

aws stack init

D

aws opsworks stack-create

Q96

Q96 A CloudFormation stack fails to deploy due to missing permissions. What should you check?

A

IAM role permissions

B

Template syntax

C

Account limits

D

Region settings

Q97

Q97 AWS Systems Manager cannot execute a command on an instance. What could be the issue?

A

Incorrect instance type

B

Agent not installed

C

IAM role missing

D

Network ACL misconfiguration

Q98

Q98 OpsWorks fails to deploy an application due to a missing dependency. What should you do?

A

Update IAM permissions

B

Check deployment logs

C

Restart the instance

D

Create a new stack

Q99

Q99 What is the primary purpose of Elastic Load Balancing (ELB)?

A

Distribute incoming traffic

B

Store application logs

C

Encrypt data

D

Monitor server health

Q100

Q100 Which type of ELB supports WebSocket connections?

A

Classic Load Balancer

B

Application Load Balancer

C

Network Load Balancer

D

Global Accelerator

Q101

Q101 What is the primary purpose of Target Groups in ELB?

A

Store server metadata

B

Distribute traffic

C

Track client IPs

D

Monitor logs

Q102

Q102 What is the difference between a Network Load Balancer and an Application Load Balancer?

A

NLB is for Layer 7 traffic, ALB is for Layer 4

B

NLB is for Layer 4 traffic, ALB is for Layer 7

C

NLB encrypts traffic

D

ALB has higher latency

Q103

Q103 Which AWS CLI command creates an Auto Scaling group?

A

aws autoscaling init-group

B

aws autoscaling create-group

C

aws scaling add-group

D

aws elb scale-create

Q104

Q104 How do you register targets with a load balancer using the AWS CLI?

A

aws elb register-targets

B

aws elbv2 register-targets

C

aws elb attach-target

D

aws elb add-targets

Q105

Q105 How do you create a scaling policy for an Auto Scaling group using the AWS CLI?

A

aws autoscaling set-policy

B

aws autoscaling create-policy

C

aws elb create-policy

D

aws scaling new-policy

Q106

Q106 An ELB is not distributing traffic evenly. What is the most likely cause?

A

Target instance health

B

Load balancer type

C

Security group rules

D

Target group configuration

Q107

Q107 Auto Scaling is not launching new instances during high traffic. What could be the issue?

A

Incorrect scaling policy

B

IAM permissions missing

C

Invalid instance type

D

Network ACLs

Q108

Q108 What is the primary benefit of using AWS Lambda for serverless applications?

A

Manual scaling

B

Built-in storage

C

Infrastructure management

D

Automatic deployment

Q109

Q109 Which AWS service is best suited for building event-driven applications using message queues?

A

S3

B

SNS

C

SQS

D

EBS

Q110

Q110 What is the maximum execution time for an AWS Lambda function?

A

5 minutes

B

10 minutes

C

15 minutes

D

20 minutes

Q111

Q111 Which AWS service automatically triggers serverless functions based on HTTP requests?

A

CloudFront

B

API Gateway

C

CloudFormation

D

Route 53

Q112

Q112 How do you deploy a Lambda function using the AWS CLI?

A

aws lambda deploy-function

B

aws lambda create-function

C

aws deploy lambda

D

aws lambda set-function

Q113

Q113 Which AWS CLI command creates an event source mapping for a Lambda function?

A

aws lambda create-event-source

B

aws lambda map-source

C

aws lambda create-event-source-mapping

D

aws lambda set-source

Q114

Q114 How do you add an API Gateway trigger to a Lambda function using the AWS CLI?

A

aws api-gateway create-trigger

B

aws lambda add-trigger

C

aws api-gateway create-integration

D

aws lambda set-gateway

Q115

Q115 A Lambda function invoked via API Gateway returns a 502 error. What could be the issue?

A

Invalid IAM policy

B

Timeout setting

C

Malformed response format

D

Scaling issue

Q116

Q116 A Lambda function triggered by an SQS queue is not executing. What might be the cause?

A

SQS message visibility timeout

B

IAM role missing

C

Dead-letter queue misconfiguration

D

Event source mapping missing

Q117

Q117 What is the primary purpose of AWS CodePipeline?

A

Automating application deployment

B

Version control

C

Monitoring resource usage

D

Encrypting data

Q118

Q118 Which type of deployment is supported by CodeDeploy for Lambda functions?

A

Rolling

B

Blue/Green

C

Immutable

D

All-at-once

Q119

Q119 What is the function of deployment groups in CodeDeploy?

A

Store deployment scripts

B

Define deployment settings

C

Track user permissions

D

Monitor CI/CD pipelines

Q120

Q120 Which AWS service integrates with CodePipeline to store and version code repositories?

A

CodeBuild

B

CodeCommit

C

CloudFormation

D

CodeDeploy

ad verticalad vertical
ad