Configuring Application Workloads to Use OpenShift Data Foundation Object Storage Flashcards

(68 cards)

1
Q

What are the three parts of object storage in Red Hat OpenShift Data Foundation?

A

Objects, Buckets, S3 API server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an object in the context of object storage?

A

The storage unit with a unique identifier and associated metadata

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do buckets contain in object storage?

A

A set of objects and the policies associated with them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the role of the S3 API server?

A

Authenticates applications and stores and retrieves objects from the buckets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can objects be organized in object storage?

A

By adding a prefix to the name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Fill in the blank: Object storage is effective for ______ applications.

A

[cloud-native]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What types of data can applications use object storage for?

A

Large amounts of unstructured data, such as text, audio, images, video, or binary content

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

List some common use cases for object storage.

A
  • Large data sets
  • Unstructured data
  • Log files
  • Backups for archiving
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do applications access buckets and objects using the S3 API?

A

Through a client library using the HTTP or HTTPS protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the two components of S3 access keys?

A
  • Access key
  • Secret access key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

True or False: The S3 API allows random file access.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the s3cmd tool do?

A

Manages data in Amazon S3 and other cloud storage providers using the S3 protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is required to configure the s3cmd tool?

A

Create a .s3cfg file in your home directory with S3 credentials

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Fill in the blank: Bucket replication enables automatic and ______ replication of objects across S3 buckets.

A

[asynchronous]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the difference between Single-Region Replication (SRR) and Cross-Region Replication (CRR)?

A

SRR is for the same region, CRR is for different regions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is object versioning in the context of object storage?

A

Enables keeping multiple versions of an object in a bucket

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What command in s3cmd is used to check the status of object versioning?

A

s3cmd info s3://my-bucket

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

How can you enable object versioning for an S3 bucket?

A

Using the command: s3cmd setversioning s3://my-bucket enable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What does the s3cmd sync command do?

A

Synchronizes a directory to S3 or S3 to a directory, transferring only new files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

List the main differences between block, file, and object storage.

A
  • Data access: Block device / File system / S3 API
  • Random access: Yes / Yes / No
  • Access modes: RWO / RWX / RWX
  • Hierarchical: No / Yes / Flat
  • Storage unit: Block / File / Object
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What are the two operators that provide object storage in OpenShift Data Foundation?

A
  • Ceph RADOS Object Gateway (Ceph RGW)
  • Multicloud Object Gateway (NooBaa MCG)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is the purpose of Ceph RGW?

A

Provides a RESTful gateway to Ceph storage clusters with an S3 interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What advantages does the NooBaa MCG provide?

A

Lightweight object storage service using any Amazon S3-compatible storage with a unique endpoint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Fill in the blank: You can configure the backing storage for Ceph RGW or NooBaa MCG depending on the type of ______.

A

[infrastructure]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What deployment mode of NooBaa uses local block or file storage?
Stand-alone deployment mode
26
What is the purpose of an Object Bucket Claim (OBC) in OpenShift?
To request an S3-compatible bucket for object storage.
27
What are the two object storage services included in OpenShift Data Foundation?
* Multicloud Object Gateway (MCG) from NooBaa operator * Ceph RADOS Object Gateway (RGW) from Rook-Ceph operator
28
What does an OBC create when it is instantiated?
* An S3 bucket * A set of associated resources * An application account with read and write permissions
29
True or False: The storage class of an OBC can be changed after creation.
False
30
What is the storage class for Ceph RGW in OpenShift?
ocs-storagecluster-ceph-rgw
31
What protocol does NooBaa MCG use?
HTTPS
32
What is the command to view the details of a storage class in OpenShift?
oc describe storageclass [storage_class_name]
33
Fill in the blank: The object storage class provided by NooBaa MCG is _______.
openshift-storage.noobaa.io
34
What YAML configuration defines an Object Bucket Claim?
apiVersion: objectbucket.io/v1alpha1 kind: ObjectBucketClaim metadata: name: [name] namespace: [namespace] spec: storageClassName: [storage_class] generateBucketName: [bucket_name]
35
What type of resources does the API server create when an OBC is created?
* The object bucket * A configuration map * A secret
36
What does the configuration map created by OpenShift contain?
* S3 endpoint details * Name of the bucket
37
What command is used to extract data from a configuration map?
oc extract configmap/[configmap_name] --to=-
38
What is the default port used by the S3 service from Ceph RGW?
80
39
What is the default protocol and port used by NooBaa MCG?
HTTPS on port 443
40
What are the two external endpoints provided by OpenShift for Ceph RGW?
* Unsecure route on port 80 * Secure route on port 443
41
What is the command to view available OBCs in the current namespace?
oc get objectbucketclaims
42
What type of information does the secret created by OpenShift contain?
* Credentials to authenticate with the S3 API
43
What is the command to extract data from an OBC secret?
oc extract secret/[secret_name] --to=-
44
What is the recommended practice for protecting access and secret keys?
Protect them as passwords.
45
After creating the OBC, what indicates that the object bucket is created?
The bound phase for the associated object bucket resource.
46
What information is included in the S3 service endpoint for a bucket created with NooBaa MCG?
s3.openshift-storage.svc
47
What command can be used to access an S3 bucket with s3cmd?
s3cmd [command]
48
Fill in the blank: The path for the SSL CA certificate file is _______.
/run/secrets/kubernetes.io/serviceaccount/service-ca.crt
49
What is the main objective of configuring applications in OpenShift Data Foundation?
Configure applications to use S3-compatible object storage from Red Hat OpenShift Data Foundation
50
How do applications access S3 buckets?
Applications use a client library to access buckets with the HTTP or HTTPS protocol
51
What do client libraries use to authenticate with the S3 API?
A set of access keys
52
What resources does OpenShift Data Foundation create when an object bucket claim is made?
A configuration map and a secret
53
What information does the configuration map contain?
The S3 endpoint and the name of the S3 bucket
54
What is the default S3 endpoint for OpenShift Data Foundation?
s3.openshift-storage.svc
55
What is the default port for the S3 endpoint?
443
56
What is an example of a bucket name in OpenShift Data Foundation?
my-object-bucket-claim-27f4ce2f-13ca-44cc-b8a5-1a747989cfb3
57
What does the secret contain for accessing the S3 API?
The access keys
58
What is the AWS_ACCESS_KEY_ID example value?
AKIAIOSFODNN7EXAMPLE
59
What is the AWS_SECRET_ACCESS_KEY example value?
wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
60
How can you inject S3 settings into a pod?
By adding environment variables in the container specification
61
What keys indicate the injection of settings from the configuration map and secret?
configMapRef and secretRef
62
What command is used to inject a key-value pair into a container?
oc set env
63
What is the command to inject a configuration map into a deployment?
oc set env --from cm/my-object-bucket-claim deploy/image-tool-s3-obc
64
What is the command to inject a secret into a deployment?
oc set env --from secret/my-object-bucket-claim deploy/image-tool-s3-obc
65
How can you create custom environment variables from configuration maps or secrets?
Using valueFrom with configMapKeyRef or secretKeyRef
66
What does configMapKeyRef do?
Reads value from a key in a configuration map
67
What does secretKeyRef do?
Extracts value from a key in a secret
68
What overrides environment variables defined in the container image?
Environment variables defined with env or envFrom