Recall & Review
beginner
What is XCom in Airflow?
XCom stands for 'Cross-Communication'. It is a feature in Airflow that allows tasks to share small pieces of data with each other during a workflow.
Click to reveal answer
beginner
How does XCom enable communication between tasks?
XCom lets one task push a message or data, and another task pull that data later. This way, tasks can pass information without direct connections.
Click to reveal answer
beginner
What kind of data can be shared using XCom?
XCom is designed for small pieces of data like strings, numbers, or small dictionaries. It is not meant for large files or big data.
Click to reveal answer
beginner
Why is XCom useful in workflows?
XCom helps tasks work together by sharing results or status. This makes workflows flexible and dynamic, like passing notes in a group project.
Click to reveal answer
intermediate
How do tasks push and pull data using XCom?
Tasks use Airflow's methods like `xcom_push()` to send data and `xcom_pull()` to receive it. This is like sending and reading messages in a chat.
Click to reveal answer
What does XCom stand for in Airflow?
✗ Incorrect
XCom means Cross-Communication, which allows tasks to share data.
Which method is used to send data from a task using XCom?
✗ Incorrect
The method xcom_push() is used to send data from a task.
What type of data is best suited for XCom?
✗ Incorrect
XCom is designed for small data like strings or numbers, not large files.
How does XCom improve workflow flexibility?
✗ Incorrect
XCom allows tasks to share data dynamically, making workflows more flexible.
Which method retrieves data sent by another task in XCom?
✗ Incorrect
xcom_pull() is used to get data sent by another task.
Explain how XCom enables communication between tasks in Airflow.
Think about how tasks pass notes in a group.
You got /4 concepts.
Describe the types of data suitable for XCom and why it is not used for large files.
Consider the size and purpose of data in task communication.
You got /3 concepts.