SAP-C02 Accelerate Workload Migration and Modernization • Complete Question Bank
Complete SAP-C02 Accelerate Workload Migration and Modernization question bank — all 0 questions with answers and detailed explanations.
Refer to the exhibit. Error log from AWS DMS task: "Last Error 1201: Could not start capture. The SQL Server log file 'LDF' is full. Stop the capture and free up space in the log file." Task details: - Source: SQL Server on EC2 (Full CDC mode) - Target: Amazon Redshift - DMS task type: Migrate existing data and replicate ongoing changes - Task status: Failed with error after initial load completed successfully
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag a concept onto its matching description — or click a concept then click the description.
Serverless compute for event-driven applications
Run Docker containers without managing servers
Managed Kubernetes for container orchestration
Serverless compute for containers
Virtual servers for full control over the environment
Drag a concept onto its matching description — or click a concept then click the description.
Connect two VPCs using private IP addresses
Allow private instances to access the internet
Enable communication between VPC and the internet
Stateless firewall for controlling traffic at subnet level
Stateful firewall for controlling traffic at instance level
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::my-bucket/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": "10.0.0.0/16"
}
}
}
]
}Refer to the exhibit.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:DescribeInstances",
"ec2:StartInstances",
"ec2:StopInstances"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "ec2:TerminateInstances",
"Resource": "arn:aws:ec2:us-east-1:123456789012:instance/*",
"Condition": {
"StringEquals": {
"ec2:ResourceTag/Environment": "production"
}
}
}
]
}Refer to the exhibit.
Resources:
MyBucket:
Type: AWS::S3::Bucket
Properties:
VersioningConfiguration:
Status: Enabled
LifecycleConfiguration:
Rules:
- Id: ArchiveRule
Status: Enabled
Prefix: logs/
Transitions:
- TransitionInDays: 30
StorageClass: GLACIER
PublicAccessBlockConfiguration:
BlockPublicAcls: trueRefer to the exhibit.
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::my-bucket/*"
},
{
"Effect": "Deny",
"Action": "s3:*",
"Resource": "arn:aws:s3:::my-bucket/secret/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": "10.0.0.0/8"
}
}
}
]
}
```Refer to the exhibit.
```
# CloudFormation template snippet
Resources:
MyBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: my-app-data-bucket
VersioningConfiguration:
Status: Enabled
```Refer to the exhibit.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::my-bucket/*",
"Condition": {
"Bool": {
"aws:SecureTransport": "true"
}
}
},
{
"Effect": "Deny",
"Action": "s3:*",
"Resource": "arn:aws:s3:::my-bucket/*",
"Condition": {
"Bool": {
"aws:SecureTransport": "false"
}
}
}
]
}Refer to the exhibit. Error: Unable to export instance i-1234567890abcdef0 to Amazon S3. The instance does not have an attached root volume.
Refer to the exhibit.
```
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"dms:CreateReplicationInstance",
"dms:CreateReplicationTask",
"dms:StartReplicationTask"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"rds:DescribeDBInstances",
"s3:GetObject",
"s3:ListBucket"
],
"Resource": "*"
}
]
}
```Refer to the exhibit.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::my-bucket/*",
"Condition": {
"StringEquals": {
"s3:x-amz-server-side-encryption": "AES256"
}
}
},
{
"Effect": "Deny",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::my-bucket/*",
"Condition": {
"StringNotEquals": {
"s3:x-amz-server-side-encryption": "AES256"
}
}
}
]
}Refer to the exhibit.
# CloudFormation template snippet
Resources:
MyAutoScalingGroup:
Type: AWS::AutoScaling::AutoScalingGroup
Properties:
AvailabilityZones:
- us-east-1a
- us-east-1b
LaunchConfigurationName: !Ref MyLaunchConfig
MinSize: '2'
MaxSize: '10'
DesiredCapacity: '2'
TargetGroupARNs:
- !Ref MyTargetGroup
MyLaunchConfig:
Type: AWS::AutoScaling::AutoScalingGroup
Properties:
ImageId: ami-12345678
InstanceType: t2.micro
SecurityGroups:
- !Ref MySecurityGroupRefer to the exhibit.
```
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::my-bucket/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": "203.0.113.0/24"
}
}
}
]
}
```Refer to the exhibit.
```
# Output from: aws migrationhub list-migration-tasks --region us-east-1
{
"MigrationTaskSummaryList": [
{
"MigrationTaskName": "app-server-01",
"ProgressUpdateStream": "DMS",
"Status": "FAILED",
"ResourceAttributeList": [
{
"Type": "IP_ADDRESS",
"Value": "192.168.1.10"
}
]
}
]
}
```Refer to the exhibit.
```
# CloudFormation template snippet
Resources:
MyInstance:
Type: AWS::EC2::Instance
Properties:
InstanceType: t2.micro
ImageId: ami-0abcdef1234567890
UserData:
Fn::Base64: !Sub |
#!/bin/bash
yum install -y httpd
systemctl start httpd
MyDB:
Type: AWS::RDS::DBInstance
Properties:
Engine: MySQL
DBInstanceClass: db.t2.micro
MasterUsername: admin
MasterUserPassword: !Ref DBPassword
AllocatedStorage: 20
```Refer to the exhibit.
```
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::example-bucket/*"
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": "arn:aws:s3:::example-bucket"
}
]
}
```Refer to the exhibit.
```
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "dms.amazonaws.com"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"aws:SourceAccount": "123456789012"
}
}
}
]
}
```Refer to the exhibit.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:DescribeInstances",
"ec2:StartInstances",
"ec2:StopInstances"
],
"Resource": "*"
},
{
"Effect": "Deny",
"Action": "ec2:TerminateInstances",
"Resource": "*",
"Condition": {
"StringNotEquals": {
"aws:RequestedRegion": "us-east-1"
}
}
}
]
}Refer to the exhibit.
```
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"dms:CreateReplicationTask",
"dms:StartReplicationTask"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"rds:DescribeDBInstances",
"rds:DescribeDBSnapshots"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::my-migration-bucket/*"
}
]
}
```{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowMigrationHubAccess",
"Effect": "Allow",
"Action": [
"mgh:CreateProgressUpdateStream",
"mgh:PutResourceAttributes",
"mgh:AssociateCreatedArtifact",
"mgh:DisassociateCreatedArtifact",
"mgh:NotifyMigrationTaskState",
"mgh:DescribeMigrationTask",
"mgh:ListMigrationTasks",
"mgh:ListProgressUpdateStreams"
],
"Resource": "*"
}
]
}