Amazon AWS

AWS Certified Developer – Associate

DVA-C02
Popular

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.

492 questions 0 views Free
Start Mock Test Timed · Full-length · Scored

Questions 431–440 of 492

Q431

A company needs to provide temporary access to an S3 bucket for third-party vendors. What is the best approach?

  • A IAM Roles with permanent credentials
  • B Cognito User Pools
  • C Pre-signed URLs
  • D Amazon CloudFront
Explanation Pre-signed URLs grant temporary access to S3 objects, while other options either do not provide temporary access or require complex setups.
Q432

You are configuring an Auto Scaling group. What happens when the health check fails for an instance?

  • A It is terminated and replaced
  • B It remains in service
  • C It scales the group up
  • D No action is taken
Explanation When a health check fails, the instance is terminated and replaced to maintain the desired capacity, while other options do not align with Auto Scaling behavior.
Q433

What happens when an EC2 instance is stopped?

  • A Stored data is deleted
  • B The instance is kept in memory
  • C The instance receives a new IP
  • D The instance's EBS volume is intact
Explanation Stopping an EC2 instance retains data on EBS volumes, while data on instance store volumes is lost.
Q434

A company needs to run a script every night at midnight. Which service should they use?

  • A AWS Lambda
  • B Amazon CloudWatch Events
  • C AWS Step Functions
  • D AWS CodePipeline
Explanation Amazon CloudWatch Events can trigger scripts on schedule, while the other options do not natively handle such scheduling.
Q435

You are configuring AWS IAM roles for a Lambda function to access specific S3 buckets. What is the best practice?

  • A Assign full S3 permissions
  • B Use a specific policy for access
  • C Add general CloudWatch permissions
  • D Use an IAM user for access
Explanation Using a specific policy follows the principle of least privilege, while other options either grant excessive permissions or are incorrect approaches.
Q436

Which option describes a best practice for S3 bucket permissions?

  • A Use bucket policies for public access.
  • B Give everyone read access.
  • C Use ACLs only for permissions.
  • D Enable public access by default.
Explanation Using bucket policies helps manage permissions securely, while the other options either allow excessive access or rely poorly on outdated methods.
Q437

A company needs to run serverless applications; which AWS service should it consider first?

  • A Amazon EC2
  • B AWS Lambda
  • C Amazon S3
  • D AWS Fargate
Explanation AWS Lambda is designed specifically for serverless applications, while the others involve more infrastructure management.
Q438

What happens when you set an IAM policy to Deny all actions on an S3 bucket?

  • A Access is blocked for that bucket.
  • B Actions are still allowed.
  • C Only read actions are denied.
  • D Bucket can still be accessed anonymously.
Explanation Setting a Deny policy restricts all access to that bucket, contrary to other options suggesting unauthorized actions may be allowed.
Q439

Which AWS service provides a serverless compute environment?

  • A AWS Lambda
  • B Amazon EC2
  • C Amazon RDS
  • D Amazon ECS
Explanation AWS Lambda is a serverless compute service; the others require server provisioning.
Q440

A company needs to allow EC2 instances to access S3. What should be configured?

  • A S3 bucket policy
  • B IAM role
  • C Security group
  • D EC2 instance profile
Explanation An IAM role grants the EC2 instances access to S3; the others do not allow this specific access.