The AWS Certified Developer – Associate (DVA-C02) exam tests your proficiency in developing applications on AWS. It is designed for developers looking to validate their skills in AWS development.
What happens when you configure an Auto Scaling group with a desired capacity of 3 and a static minimum of 2?
AOnly 2 instances will launch.
B3 instances will launch immediately.
CScaling will be disabled.
DIt ignores the minimum setting.
Explanation
The desired capacity setting overrides the minimum, so 3 instances are launched.
Q232
Which service is used for serverless compute with event-driven architecture?
AAWS Lambda
BAmazon EC2
CAWS Fargate
DAmazon RDS
Explanation
AWS Lambda provides serverless compute for events; EC2 requires manual server management, Fargate is for containers, and RDS is for databases.
Q233
A company needs to securely manage and rotate API secrets. Which AWS service should they use?
AAWS Secrets Manager
BAWS Systems Manager
CAmazon Cognito
DAWS Lambda
Explanation
AWS Secrets Manager specifically manages and rotates API secrets securely; Systems Manager is for instance management, Cognito is for user authentication, and Lambda is for running code without managing servers.
Q234
What happens when you enable EC2 instance termination protection?
AInstance cannot be stopped
BInstance cannot be rebooted
CInstance cannot be terminated
DInstance cannot be resized
Explanation
Enabling termination protection prevents the instance from being terminated, while it can still be stopped, rebooted, or resized; stopping and rebooting are unaffected by this setting.
Q235
Which service provides a Python-based environment for creating serverless applications?
AAWS Lambda
BAWS Batch
CAmazon EC2
DAWS Fargate
Explanation
AWS Lambda allows for serverless computing using various languages including Python, while the others are not serverless options.
Q236
A company needs to run multiple applications in containers without managing servers. What should they use?
AAmazon EC2
BAWS Lambda
CAWS Fargate
DElastic Beanstalk
Explanation
AWS Fargate enables the deployment of containers without managing servers, unlike the other options.
Q237
What happens when you change an IAM policy attached to a user in a user group?
AAll users inherit the policy.
BOnly the specific user is affected.
CGroup policies override user policies.
DThe user loses all permissions.
Explanation
Changes in group policies affect all users in that group; individual policies cannot contradict this.
Q238
Which service allows automatic scaling of resources?
AAWS Auto Scaling
BAmazon CloudFront
CAWS Lambda
DAmazon RDS
Explanation
AWS Auto Scaling adjusts resources automatically based on demand, while the other services do not primarily focus on scaling.
Q239
A company needs to deploy applications in multiple regions. Which AWS service would best facilitate this?
AAmazon S3
BAWS Regions
CAWS CloudFormation
DAWS Elastic Beanstalk
Explanation
AWS Elastic Beanstalk supports multi-region deployment seamlessly, unlike others which are not designed specifically for application deployment across regions.
Q240
What happens when you attach an IAM policy with 'Deny' to a user?
AGrants user all permissions
BDenies specified permissions
COverrides other policies
DHas no effect
Explanation
A 'Deny' policy explicitly denies permissions, while other options either incorrectly suggest granting or no actions taken.